var mongoose = require('mongoose');

var Schema = mongoose.Schema;
var ObjectId  = Schema.ObjectId;

var workerSchema = new Schema({
    name: { type: String },
    remark: { type: String },
    positionId: { type: ObjectId },
    createAt: { type: Date, default: Date.now },
    updateAt: { type: Date, default: Date.now },
    deleted: { type: Boolean }
});

mongoose.model('Worker', workerSchema);